package com.itsu.mysql.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.itsu.interfaces.entity.TestSoulOption;
import com.itsu.interfaces.service.TestSoulOptionService;
import com.itsu.mysql.mappers.TestSoulOptionMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TestSoulOptionServiceImpl implements TestSoulOptionService {

    @Autowired
    TestSoulOptionMapper optionMapper;


    @Override
    public List<TestSoulOption> findByQid(Long qId) {
        return optionMapper.selectList(Wrappers.lambdaQuery(TestSoulOption.class).eq(TestSoulOption::getQuestionsId, qId));
    }
}
